<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.js"></script>
    <script src="https://cdn.bootcss.com/vue/2.5.17-beta.0/vue.js"></script>
</head>
<body>
    <div id="test">
       <template v-for="item in msg">
           <p>{{item}}</p>
       </template>
    </div>
    <script>
    new Vue({
        el:"#test",
        data:{
            msg:[4,5,6]
        },
        beforeCreate(){
            var url="https://easy-mock.com/mock/5baf28bad71a4e533bffd009/05/vue";
            $.get(url,res=>{
                console.log(res);
                console.log(this.msg);
                this.msg=res.data;
            })
        }
    })
    </script>
</body>
</html>